import request from '@/utils/request'


/**
 * 创建订单
 * @param data
 * @returns {Promise<ResponseData<unknown>>}
 */
export function subOrder(data){
  return request({
    url: '/pay/order',
    method: 'post',
    data: data
  })
}

/**
 * 支付接口
 * @param channel
 * @param orderNumber
 * @returns {Promise<ResponseData<unknown>>}
 */
export function subPay(channel,orderNumber) {
  return request({
    url: '/pay/' + channel + '/url/' + orderNumber,
    method: 'get',
  })
}